package com.fengpanlong.service;

import java.util.List;

import com.fengpanlong.dao.EmployeeDao;
import com.fengpanlong.entity.Employee;

public class EmployeeService {
	/**
	 * 找出全部用户
	 * @return 用户列表
	 */
	public static List<Employee> findEmployeesForList() {
		EmployeeDao ed = new EmployeeDao();
		return ed.findAll();
	}
	/**
	 * 通过用户id查找用户
	 * @param employeeId
	 * @return
	 */
	public static Employee findEmployeeByEmployeeId(String employeeId) {
		EmployeeDao ed = new EmployeeDao();
		return ed.findById(employeeId);
	}
}
